﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_DLL.Product.DAO;
using ERP_RORZE_DLL.Product.Base;

namespace ERP_RORZE_PRODUCT.Product.MO
{
    public partial class ctrlMOActualPrice : DevExpress.XtraEditors.XtraUserControl
    {

        ClsMODAO clsMODAO = new ClsMODAO();
        DataTable dt;
        public ctrlMOActualPrice()
        {

            InitializeComponent();
        }

        private void ctrlMOActualPrice_Load(object sender, EventArgs e)
        {
            dt = clsMODAO.GetAllMOVMoFactPartPrice();
            gridControl1.DataSource = dt;
            gridView1.BestFitColumns();
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            ctrlMOActualPrice_Load(sender, e);
        }

        private void btnExport_Click(object sender, EventArgs e)
        {
            clsConstantsFuction.ExportToExcel(gridView1, 1, true);
        }
    }
}
